Package pl.wendigo.chrome.api.media

Contains DevTools Protocol Media domain implementation accessible via MediaDomain class.

Types

MediaDomain
Link copied to clipboard
class MediaDomain : Domain
This domain allows detailed inspection of media elementsThis API is marked as experimental in protocol definition and can change in the future.
PlayerError
Link copied to clipboard
data class PlayerError(type: String, errorCode: String)
Corresponds to kMediaError
PlayerErrorsRaisedEvent
Link copied to clipboard
data class PlayerErrorsRaisedEvent(playerId: PlayerId, errors: List<PlayerError>) : Event
Send a list of any errors that need to be delivered.
PlayerEvent
Link copied to clipboard
data class PlayerEvent(timestamp: Timestamp, value: String)
Corresponds to kMediaEventTriggered
PlayerEventsAddedEvent
Link copied to clipboard
data class PlayerEventsAddedEvent(playerId: PlayerId, events: List<PlayerEvent>) : Event
Send events as a list, allowing them to be batched on the browser for less congestion.
PlayerId
Link copied to clipboard
typealias PlayerId = String

Players will get an ID that is unique within the agent context.

PlayerMessage
Link copied to clipboard
data class PlayerMessage(level: String, message: String)
Have one type per entry in MediaLogRecord::Type Corresponds to kMessage
PlayerMessagesLoggedEvent
Link copied to clipboard
data class PlayerMessagesLoggedEvent(playerId: PlayerId, messages: List<PlayerMessage>) : Event
Send a list of any messages that need to be delivered.
PlayerPropertiesChangedEvent
Link copied to clipboard
data class PlayerPropertiesChangedEvent(playerId: PlayerId, properties: List<PlayerProperty>) : Event
This can be called multiple times, and can be used to set / override / remove player properties.
PlayerProperty
Link copied to clipboard
data class PlayerProperty(name: String, value: String)
Corresponds to kMediaPropertyChange
PlayersCreatedEvent
Link copied to clipboard
data class PlayersCreatedEvent(players: List<PlayerId>) : Event
Called whenever a player is created, or when a new agent joins and recieves a list of active players.
Timestamp
Link copied to clipboard
typealias Timestamp = Double